<!--
 * @Author: 追逐的娃 kangchao_php@163.com
 * @Date: 2024-10-30 11:41:35
 * @LastEditors: 追逐的娃 kangchao_php@163.com
 * @LastEditTime: 2024-10-31 13:52:55
 * @FilePath: \vue-project\src\components\Vue3Echarts\Graph.vue
 * @Description: 曲线图组件
 * 
-->
<template>
  <a-modal class="animate__animated animate__slideInDown" v-model:visible="visible" title="曲线图">
    <BarGraph />
    <template #footer>
      <div class="flex justify-center">
        <a-button @click="close">关闭弹窗</a-button>
      </div>
    </template>
  </a-modal>
</template>

<script setup>
import { ref } from 'vue'
import BarGraph from './BarGraph.vue'

const visible = ref(false)

const open = () => (visible.value = true)
const close = () => (visible.value = false)

defineExpose({
  open,
  close
})
</script>

<style lang="scss" scoped>
</style>